<extend name="user"/>

<block name="user_right">
	<h3>订单详情</h3>
	<div class="table ">
			<div class="am-g title">
				<span class="am-u-sm-7">商品</span>
				<span class="am-u-sm-1">单价</span>
				<span class="am-u-sm-1">数量</span>
				<span class="am-u-sm-1">小计</span>

			</div>
			<div class="am-g title">
				<span class="am-u-sm-3">{:date('Y-m-d H:i:s',$order['create_time'])}</span>
				<span class="am-u-sm-3">订单号:{$order.order_no}</span>
				<span class="am-u-sm-3">订单金额:<span style="font-weight:bold;">￥{$order.goods_amount}+{$order.use_points}积分</span></span>
				<span class="am-u-sm-3">订单状态:
					<switch name="order.status">
							<case value="0">
								未支付
							</case>
							<case value="1">
								已支付
							</case>
						</switch>
				</span>

			</div>
			<div class="contents">
				<volist name="goods_list" id="goods">
					<div class="am-g item">
						<div class="am-u-sm-7">

							<img alt="{$goods.goods_name}" style="width:100px;" src="{$goods.pic_url|get_image_url}">

							<div class="">{$goods.goods_name}</div>
						</div>
						<div class="am-u-sm-1">{$goods.price}</div>
						<div class="am-u-sm-1">{$goods.number}</div>
						<div class="am-u-sm-1">{:number_format($goods['price']*$goods['number'],2)}</div>

					</div>
				</volist>
			</div>
			<div class="am-g title">
				<h5 class="am-u-sm-6">送货地址</h5>
			</div>
			<div class="am-g contents">
				<div class="item">
					{$order.consignee}&nbsp;&nbsp;{$order.mobile}&nbsp;&nbsp;{$order.province|get_district_name}{$order.city|get_district_name}{$order.district|get_district_name}{$order.community|get_district_name}&nbsp;&nbsp;{$order.address}
				</div>
			</div>




	</div>
</div>
</block>
<block name="script">
	<script>
		$('.am-nav').find('a[href="'+'{:U("order")}'+'"]').closest('li').addClass('am-active');
	</script>
</block>